<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements.  See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License.  You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<script id="cms-summary-template" type="text/html">
  <div id="indexdata-cache-separation">
    <h4 style="clear: left; display: inline-block;">Summary</h4>
    <div class="container-fluid">
      <div class="container-fluid">
        <table id="cache-separation-summary-cms-table" class="table table-striped compact">
          <thead>
          <th></th>
          <th><span data-toggle="tooltip"
                    title="Memory used / total available memory for storage of data like RDD partitions cached in memory. ">Storage Memory</span>
          </th>
          <th><span data-toggle="tooltip"
                    title="Total size that PMem or DRAM has cached, including Data & Index Cache and Unreleased Cache size/the number of cache unit">Total Cache Size/Count</span>
          </th>
          <th><span data-toggle="tooltip"
                    title="Total size that Backend has cached, including Data Cache and Index Cache
                    size/the number of cache unit.">Data & Index Cache Size/Count</span>
          </th>
          <th><span data-toggle="tooltip"
                    title="Total cached Data Fiber size/the number of cache unit">Data Cache Size/Count</span>
          </th>
          <th>Data Cache Hit Rate(hit/miss)</th>
          <th>Data Cache Load/Eviction</th>
          <th><span data-toggle="tooltip"
                    title="average time of load data fiber">Data Load AvgTime(ms)</span></th>
          <th><span data-toggle="tooltip"
                    title="Total cached Index Fiber size/the number of cache unit">Index Cache Size/Count</span>
          </th>
          <th>Index Cache Hit Rate(hit/miss)</th>
          <th>Index Cache Load/Eviction</th>
          <th><span data-toggle="tooltip"
                    title="average time of load index fiber">Index Load AvgTime(ms)</span></th>
          <th><span data-toggle="tooltip"
                    title="The size of cache to be released/the number of cache unit">Unreleased Cache Size/Count</span>
          </th>
          </thead>
          <tbody>
          </tbody>
        </table>
      </div>
    </div>
    <h4 style="clear: left; display: inline-block;">Executors</h4>
    <div class="container-fluid">
      <div class="container-fluid">
        <table id="cache-separation-active-cms-table" class="table table-striped compact">
          <thead>
          <tr>
            <th><span data-toggle="tooltip" data-placement="right" title="ID of the executor">Executor ID</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Address">Address</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Status">Status</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Storage Memory">Storage Memory</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="CacheSize/Count">
              Total Cache Size/Count</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Data & Index Cache Size/Count">
                Data & Index Cache Size/Count</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Data Cache Size/Count">
                Data Cache Size/Count</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Data Cache Hit Rate(hit/miss)">
                Data Cache Hit Rate(hit/miss)</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Data Cache Load/Eviction">
                Data Cache Load/Eviction</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Data Load AvgTime">Data Load AvgTime(ms)</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Index Cache Size/Count">
                Index Cache Size/Count</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Index Cache Hit Rate(hit/miss)">
                Index Cache Hit Rate(hit/miss)</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Index Cache Load/Eviction">
                Index Cache Load/Eviction</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Index Load AvgTime">Index Load AvgTime(ms)</span></th>
            <th><span data-toggle="tooltip" data-placement="top"
                      title="Unreleased Cache Size/Count">Unreleased Cache Size/Count</span></th>
          </tr>
          </thead>
          <tbody>
          </tbody>
        </table>
      </div>
    </div>
  </div>
  <div id="indexdata-cache-combine">
    <h4 style="clear: left; display: inline-block;">Summary</h4>
    <div class="container-fluid">
      <div class="container-fluid">
        <table id="summary-cms-table" class="table table-striped compact">
          <thead>
          <th></th>
          <th><span data-toggle="tooltip"
                    title="Memory used / total available memory for storage of data like RDD partitions cached in memory. ">Storage Memory</span>
          </th>
          <th><span data-toggle="tooltip"
                    title="Total size that PMem or DRAM has cached, including Data & Index Cache and Unreleased Cache size/the number of cache unit">Total Cache Size/Count</span>
          </th>
          <th><span data-toggle="tooltip"
                    title="Total size that Backend has cached, including Data Cache and Index Cache
                    size/the number of cache unit.">Data & Index Cache Size/Count</span>
          </th>
          <th><span data-toggle="tooltip"
                    title="Total cached Data Fiber size/the number of cache unit">Data Cache Size/Count</span>
          </th>
          <th><span data-toggle="tooltip"
                    title="Total cached Index Fiber size/the number of cache unit">Index Cache Size/Count</span>
          </th>
          <th><span data-toggle="tooltip"
                    title="The size of cache to be released/the number of cache unit">Unreleased Cache Size/Count</span>
          </th>
          <th>Hit Rate(hit/miss)</th>
          <th>Load Count</th>
          <th><span data-toggle="tooltip"
                    title="average time of load fiber">Load AvgTime(ms)</span></th>
          <th>Eviction Count</th>
          </thead>
          <tbody>
          </tbody>
        </table>
      </div>
    </div>
    <h4 style="clear: left; display: inline-block;">Executors</h4>
    <div class="container-fluid">
      <div class="container-fluid">
        <table id="active-cms-table" class="table table-striped compact">
          <thead>
          <tr>
            <th><span data-toggle="tooltip" data-placement="right" title="ID of the executor">Executor ID</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Address">Address</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Status">Status</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Storage Memory">Storage Memory</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="CacheSize/Count">
              Total Cache Size/Count</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Data & Index Cache Size/Count">
              Data & Index Cache Size/Count</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Data Cache Size/Count">
              Data Cache Size/Count</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Index Cache Size/Count">
              Index Cache Size/Count</span></th>
            <th><span data-toggle="tooltip" data-placement="top"
                      title="Unreleased Cache Size/Count">Unreleased Cache Size/Count</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Hit Rate (hit/miss)">Hit Rate
              (hit/miss)</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Load Count">Load Count</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Load AvgTime">Load AvgTime(ms)</span></th>
            <th><span data-toggle="tooltip" data-placement="top" title="Load AvgTime">Eviction Count</span></th>
          </tr>
          </thead>
          <tbody>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</script>
